.class Lcom/waiqin365/lightapp/dailyreport/view/bf;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/view/View;

.field final synthetic b:Lcom/waiqin365/lightapp/dailyreport/view/at;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/dailyreport/view/at;Landroid/view/View;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iput-object p2, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->a:Landroid/view/View;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 8

    const/16 v3, 0x8

    const/4 v7, 0x1

    const/high16 v6, 0x3f800000    # 1.0f

    const/4 v5, 0x0

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->m(Lcom/waiqin365/lightapp/dailyreport/view/at;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->f(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->d:Lcom/waiqin365/lightapp/dailyreport/view/a;

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/dailyreport/view/a;->d:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->a:Landroid/view/View;

    const v1, 0x7f0c0600

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->j(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f020126

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->b(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/app/Activity;

    move-result-object v0

    const v1, 0x7f040025

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v1}, Lcom/waiqin365/lightapp/dailyreport/view/at;->f(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->startAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->d:Lcom/waiqin365/lightapp/dailyreport/view/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->d:Lcom/waiqin365/lightapp/dailyreport/view/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_5

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->d:Lcom/waiqin365/lightapp/dailyreport/view/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->d:Lcom/waiqin365/lightapp/dailyreport/view/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/a;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/b;

    iget-object v3, v0, Lcom/waiqin365/lightapp/dailyreport/c/b;->a:Ljava/lang/Long;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v0

    iget-object v4, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v4}, Lcom/waiqin365/lightapp/dailyreport/view/at;->l(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/List;

    move-result-object v4

    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v4

    add-int/lit8 v4, v4, -0x1

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/b;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/b;->a:Ljava/lang/Long;

    if-ne v3, v0, :cond_1

    const/16 v0, -0x64

    if-eq v1, v0, :cond_5

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v2, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-eq v2, v1, :cond_0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    :cond_0
    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->n(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_2

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->h:Z

    if-eqz v0, :cond_6

    move v3, v2

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v3, v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    if-eqz v3, :cond_3

    move-object v0, v1

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    :goto_4
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_3

    :cond_3
    move-object v0, v1

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v1, v7}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->n(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_4

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iput-boolean v2, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->h:Z

    :cond_5
    return-void

    :cond_6
    move v3, v2

    :goto_5
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v3, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->g:Lcom/waiqin365/lightapp/dailyreport/c/b;

    if-eqz v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/view/at;->g:Lcom/waiqin365/lightapp/dailyreport/c/b;

    iget-object v1, v0, Lcom/waiqin365/lightapp/dailyreport/c/b;->a:Ljava/lang/Long;

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->a(Lcom/waiqin365/lightapp/dailyreport/view/at;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/b;

    iget-object v0, v0, Lcom/waiqin365/lightapp/dailyreport/c/b;->a:Ljava/lang/Long;

    if-ne v1, v0, :cond_8

    move v4, v2

    :goto_6
    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    if-ge v4, v0, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->h(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    if-eq v4, v3, :cond_7

    move-object v0, v1

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    :goto_7
    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_6

    :cond_7
    move-object v0, v1

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setProgress(F)V

    check-cast v1, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;

    invoke-virtual {v1, v7}, Lcom/waiqin365/lightapp/dailyreport/view/ColorTrackView;->setDirection(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/dailyreport/view/bf;->b:Lcom/waiqin365/lightapp/dailyreport/view/at;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/view/at;->n(Lcom/waiqin365/lightapp/dailyreport/view/at;)Landroid/support/v4/view/ViewPager;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/support/v4/view/ViewPager;->setCurrentItem(I)V

    goto :goto_7

    :cond_8
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_5
.end method
